package PTA_JAVA.Exception.Exception05;

import java.util.InputMismatchException;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            try{
                int a= sc.nextInt();
                int b = sc.nextInt();
                System.out.println("sum = "+(a+b));
            }catch(InputMismatchException e){
                System.out.println("Incorrect input: two integer is required");
                sc.next();
            }
        }
    }
}
